package communication;

import java.io.IOException;
import java.net.SocketException;
import java.net.UnknownHostException;

import com.illposed.osc.OSCMessage;
import com.illposed.osc.OSCPortOut;

public class OSCSender {

	public void sendMessage(){
		OSCPortOut sender;
		try {
			sender = new OSCPortOut();
			Object args[] = new Object[2];
			args[0] = new Integer(3);
			args[1] = "hello";
			OSCMessage msg = new OSCMessage("/hello", args);
			sender.send(msg);
		} catch (UnknownHostException e1) {
			e1.printStackTrace();
		} catch (SocketException e1) {
			e1.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
	
}
